﻿using System;
using System.Linq;
using System.Text.Json.Serialization;
using Xc.DataAccess.DataBases.Core.Models;

namespace Xc.DataAccess.DataBase.DeviceInfos.Models
{
    /// <summary>
    /// 报警信息
    /// </summary>
    public class AlarmInfo : LongDbTable, IAlarmInfo,ITableInfo,IDeviceInfoId
    {
        /// <summary>
        /// 报警信息ID
        /// </summary>
        [JsonIgnore] 
        public string DeviceInfoId { get; set; }
        /// <summary>
        /// 设备信息
        /// </summary>
        [JsonIgnore] 
        public DeviceInfo DeviceInfo { get; set; }
        /// <summary>
        /// 报警名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 报警值
        /// </summary>
        public string Value { get; set; }
    }
}
